<?php
class Contact extends Controller{
    public $data;
    function __construct(){
        parent::__construct();
        Session::init();
        $this->bar = new Bar();
        $this->model("model_website");
    }
    public function index(){
        //Set url begin login
        Session::set("url", "contact");
        Session::commit();

        //Bar content
        $bar_content = $this->bar->getBarContact();
        $this->data['bar_content'] = $bar_content;

        //User
        if (Session::get("uid")){
            $user = $this->model_website->getUsersById(Session::get("uid"));
            $this->data['user'] = $user;
        }

        $this->data['view'] = "contact";
        /*$this->data['type'] = "user";*/
        $this->data['title'] = "CONTACT US";
        $this->data['data'] = "";
        $this->view->render("layout/body", $this->data);
    }
}
?>